<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="header_teacher.jsp"%>
<!-- 以上为页头 设置head 引用样式相关信息 请勿修改  请直接修改header.jsp文件  by 小灯笼 -->

<!--  -->

<!-- 以下为正文 -->


<link rel="stylesheet" type="text/css" href="css/jquery-ui.min.css">
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>

<script type="text/javascript">

$(document).ready(function(){
	//初始化

	$("#money_error").hide();
	
	//经费为数值型参数
	$("#money").keyup(function(){
		if(isNaN($("#money").val()))
		{
			$("#money_error").show();
			$("#submit_btn").attr("disabled","true");  //提交按钮无效
		}
		else
		{
			$("#money_error").hide();
			$("#submit_btn").removeAttr("disabled");  //提交按钮有效
		}
			
	});
});
//-->
</script>

<div class="left-sidebar">
            <div class="row-fluid">
              <div class="span12">
                <div class="widget">
                  <div class="widget-header">
                    <div class="title">
                      	4.研究生获国家、江苏省科研创新计划资助情况
                      <span class="mini-title">
                        	4
                      </span>
                    </div>
                    <span class="tools">
                      <a class="fs1" aria-hidden="true" data-icon="" data-original-title=""></a>
                    </span>
                  </div>
                  <div class="widget-body">
                    
                    <form class="form-horizontal no-margin" action="submit_support" method="post">
                      <div class="control-group">
                        <label class="control-label" for="stdName" >
                          	研究生姓名
                        </label>
                        <div class="controls controls-row">
                          <input class="span3" type="text" id="stdName" name="stdName" placeholder="研究生姓名" required>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label" for="pojName">
                          	项目名称
                        </label>
                        <div class="controls">
                          <input type="text" name="pojName" id="pojName" class="span6" placeholder="项目名称" required>
                        </div>
                      </div>
                        <div class="control-group">
                        <label class="control-label" for="tutorName">
                          	导师姓名
                        </label>
                        <div class="controls">
                          <input type="text" name="tutorName" id="tutorName" class="span6" placeholder="导师姓名" required>
                        </div>
                      </div>                
                      <div class="control-group">
                        <label class="control-label" for="type">
                          	资助类型
                        </label>
                        <div class="controls">
                          <input type="text" name="type" id="type" class="span6" placeholder="资助类型" required>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label" for="SYear">
                          	资助年份
                        </label>
                        <div class="controls">
                        <%! Integer year=new Date().getYear()+1900; %>
                        <select name="SYear" id="SYear" class="span3 input-left-top-margins">
                            <option value="<%=year-4 %>" >
                              <%=year-4 %>
                            </option>
                            <option value="<%=year-3 %>">
                              <%=year-3 %>
                            </option>
                            <option value="<%=year-2 %>">
                              <%=year-2 %>
                            </option>
                            <option value="<%=year-1 %>">
                              <%=year-1 %>
                            </option>
                            <option value="<%=year %>" selected="selected">
                              <%=year %>
                            </option>                       
                          </select>
                        </div>
                      </div>    
                      <div class="control-group">
                        <label class="control-label" for="money">
                          	资助金额
                        </label>
                        <div class="controls">
                          <input type="text" name="money" id="money" class="span6" placeholder="资助金额" required>
                          <span id="money_error" class="badge badge-important" style="display:none">
                      			金额应当是数值
                    	  </span>
                        </div>
                      </div>
                      <div class="form-actions no-margin">
                        <button id="submit_btn" type="submit" class="btn btn-info pull-right">
                          	发布
                        </button>
                        <div class="clearfix">
                        </div>
                      </div>
                      
                    </form>
                    
                  </div>
                </div>
              </div>
            </div>
          </div>

<!-- 以上为正文 -->

<!-- 以下为页脚 及JS相关 请勿修改 请直接修改footer.jsp文件   by 小灯笼 -->
<jsp:include page="footer.jsp" />